<!doctype html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <title><?php echo $this->page_title; ?></title>
        <meta name="keywords" content="<?php echo $this->_meta_keywords; ?>" />
        <meta name="description" content="<?php echo $this->_meta_description; ?>"  />
        <link rel="shortcut icon" href="<?php echo G_STATIC_URL; ?>/aomas/img/common/favicon.ico?v=<?php echo G_VERSION_BUILD; ?>">

    </head>
    <?php $post_hash_var_name = strtoupper(md5(TIMESTAMP . $this->userinfo['salt'])); ?>
    <script type="text/javascript">
        var _<?php echo $post_hash_var_name; ?>="<?php echo new_post_hash(); ?>";
        var G_POST_HASH=_<?php echo $post_hash_var_name; ?>;
        var G_INDEX_SCRIPT = "<?php if (get_setting('url_rewrite_enable') != 'Y') echo G_INDEX_SCRIPT; ?>";
        var G_SITE_NAME = "<?php echo addcslashes(get_setting('site_name'), '\"'); ?>";
        var G_BASE_URL = "<?php echo base_url(); if (get_setting('url_rewrite_enable') != 'Y') { ?>/<?php echo rtrim(G_INDEX_SCRIPT, '/'); } ?>";
        var G_STATIC_URL = "<?php echo G_STATIC_URL; ?>";
        var G_UPLOAD_URL = "<?php echo get_setting('upload_url'); ?>";
        var G_USER_ID = "<?php echo $this->user_id; ?>";
        var G_USER_NAME = "<?php echo addcslashes($this->user_info['user_name'], '\"'); ?>";
        var G_UPLOAD_ENABLE = "<?php echo get_setting('upload_enable'); ?>";
        var G_UNREAD_NOTIFICATION = 0;
        var G_NOTIFICATION_INTERVAL = <?php echo intval(get_setting('unread_flush_interval')) * 1000; ?>;
        var G_CAN_CREATE_TOPIC = "<?php echo $this->user_info['permission']['create_topic']; ?>";
        var G_ADVANCED_EDITOR_ENABLE = "<?php echo get_setting('advanced_editor_enable'); ?>";

        <?php if (human_valid('question_valid_hour')) { ?>
            var G_QUICK_PUBLISH_HUMAN_VALID = true;
        <?php } ?>
    </script>
    <body>
       
          